Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: invalid display of source files in Chrome DevTool and Firefox de… #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix: invalid display of source files in Chrome DevTool and Firefox de… #32

wants to merge 2 commits into from

Conversation

MS-elug
Copy link

@MS-elug MS-elug commented Mar 5, 2018

…bugger because of sourceURL format

sourceURL += fileName;
}

code = ['/*\n * File: ', fileName, '\n */\narguments[1].res=', code, '\n//# sourceURL=', sourceURL].join('');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not do these changes in this file, because it is possible that fileName is already a full URL. It would be better to change things before in the call stack.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match you comment I think the best is to test the provided URL againt a location RegExp, what do you think ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm then I'm thinking again about your comment, that would be better to do it directly in AT

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@divdavem what do you think if I make the change directly in https://github.com/ariatemplates/ariatemplates/blob/master/src/aria/Aria.js#L1651 ?
With a RegExp I can check if srcURL don't match an absolute URL pattern, in that case I add the current location to the URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants